package com.ikun.admin.modules.sys.vo;

import com.ikun.common.validate.anno.NotNull;
import com.ikun.common.validate.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName NoticeAddOrUpdateVo
 * @Description:
 * @CreateDate: 2024/7/17 13:34
 */
@Data
@ApiModel("新增或修改NoticeVo")
public class NoticeAddOrUpdateVo {

    private Long id;

    @ApiModelProperty("标题")
    @NotNull(message = "请输入标题")
    private String title;

    @ApiModelProperty("内容")
    @NotNull(message = "请输入内容")
    private String content;

    @ApiModelProperty("类型")
    @NotNull(message = "请选择类型")
    private Integer type;

    @ApiModelProperty("发布者")
    private Long senderId;

    @ApiModelProperty("接收者")
    private List<Long> receiverList;

    @ApiModelProperty("状态")
    @NotNull(message = "状态错误", group = {UpdateGroup.class})
    private Integer status;

}
